package com.nari.kmd_dataservice.service;

import com.nari.kmd_dataservice.pojo.dto.targetVerify.TargerVerifyDto;
import com.nari.kmd_dataservice.pojo.entity.LaUser;
import com.nari.kmd_dataservice.pojo.request.targetResponse.TargerResponseRequest;

/**
 * @ClassName: LoadPlatformService
 * @Description: 请求负荷聚合平台服务接口
 * @Author: zhangnaijiang
 * @Date: 2022/01/27 19:16
 * @Version 1.0.0
 */
public interface LoadPlatformService {
    /*电力需求响应系统认证验证*/
    public TargerVerifyDto targetVerify(LaUser laUser) throws Exception;

    /*
     * 向负荷聚合平台发送请求获取响应
     * @param registRationId
     * @param jsonParameter
     * @return:
     * @author: znj
     * @date: 2022/1/27 23:33
     */
    public String getBodyFromLoadPlatform(String requestURI, LaUser laUser, String jsonParameter, String token) throws Exception;

    /*发布需求响应事件*/
    public boolean publishResponseEvent(TargerResponseRequest targerResponseRequest);

    /*根据负荷聚合平台注册ID获取Token*/
    public String getLaTokenByRegistRationId(String registRationId) throws Exception;
}
